<?php
if(!defined('BZ_XTBLOG') || !defined('BZ_WJSCUZ')) {
	exit('Access Denied');
}
$wzxx_title ='空间设置-'.$wzxx_title.'';
$wzxx_gj    ='空间设置-'.$wzxx_gj.'';
$wzxx_ms    ='空间设置-'.$wzxx_ms.'';
$act=$_GET['act'];
if($act == 'bvb'){
	 $banben=$_GET['banben'];
	 if(!in_array($banben,array('wap', 'wpc','web'))) {
       $banben='wpc';
   }
   if($user_uid){
      $db->update('user',array('user_banben' => $banben )," `uid` ='$user_uid'");
	 }else{
	 	  setcookie('user_banben',$banben);
	 }
   $pdid='banben';
}elseif(!$user_uid){
	 $pdid='1';
}elseif($act == 'sid'){
   $whpss=md5(time());
   setcookie('user_login','',time());
   setcookie('user_banben',$banben);
   $db->update('user',array('pwss' => $whpss ,'user_zx' => '0' , 'time_a' => $time)," `uid` ='$user_uid'");
   $pdid='sid';
}elseif($act == 'dl'){
		  $sqma=$db->query('user_dl',"`uid` = '$user_uid' and `type` = '0' ORDER BY `time_a` DESC LIMIT 0,10",'');
      while($hya=mysql_fetch_array($sqma)){
             $sj=Bingz_time_q($hya['time_a']);
             if(!$hya[uip_dz]){$hya[uip_dz]=$hya[uip];}
             $userd[]=array('sj' => $sj,'dz'=> $hya[uip_dz],'zhuangt'=> $hya[zhuangt]);
      }
      $pdid='dl';
}
@include template('head');
@include template('user/user_sid');
@include template('foot');
?>